﻿@model Article

@section Scripts{ 
    @Scripts.Render(BundleConfig.UEditorFull)
    <script>
        $(function () {
            UE.getEditor('@nameof(Model.Content)',
                {
                    readonly: true,
                    autoHeightEnabled: true,
                    toolbars: ['fullscreen'],
                    wordCount:false, 
                });
        });
    </script>
}
<div class="col-md-12 article-block">
    <div class="blog-tag-data">
        <div class="row">
            <div class="col-md-6 blog-tag-data-inner">
                <ul class="list-inline">
                    <li>
                        <i class="fa fa-calendar"></i><a href="#">@Model.CreatedTime.ToLocalYYYYMMDDHHmmss()</a>
                    </li>
                    <li>
                        <a href="@Url.Action("CreateOrEdit","Article",new { id = Model.Id })" class="btn btn-success btn-xs"><i class="fa fa-edit"></i>编辑文章</a>
                    </li>
                    @*<li>
                        <i class="fa fa-comments"></i><a href="#">38 Comments</a>
                    </li>*@
                </ul>
            </div>
        </div>
    </div>
    <div class="row">
        <script id="@nameof(Model.Content)" type="text/plain" style="width:100%;height:auto;">
            @Html.Raw(Model.Content)
        </script>
    </div>
    @*TODO:评论*@
</div>